package com.rjh.concurrent.create;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.case2")
public class ImplementsRunnable  {

    public static void main(String[] args) {
        MyRunnable runnable = new MyRunnable();
        Thread t1 = new Thread(runnable);
        t1.setName("t1");
        t1.start();
        log.debug("running");
    }
}


@Slf4j(topic = "c.MyRunnable")
class MyRunnable implements Runnable{

    @Override
    public void run() {
        log.debug("running");
    }
}

